﻿namespace StarsAdmin.Core.BaseService
{
    public interface IUpdateBaseService<TAddInput, TUpdateInput>
        where TAddInput : class
        where TUpdateInput : class
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<bool> AddAsync(TAddInput input);

        /// <summary>
        ///  编辑
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<bool> UpdateAsync(TUpdateInput input);
    }
}